#include <stdio.h>
#include "http.h"

int main()
{
	LPSTR buff = new char[1024];
	HttpService http;
	PHttpData data = NULL;
	http.init();
//	http.connect("www.baidu.com", 80);
	http.ConnectAndCreateRequest("GET", "http://www.baidu.com/", 80);
	http.SendRequest();
//	data = http.RecvData();
	http.RecvDataWithHeader(buff, 1024);

	int i = 0;
	++i;
	return 0;
}